package com.liy.supercloud.server.gateway.controller;

import com.liy.framework.common.extvo.ResultVO;
import com.liy.supercloud.server.gateway.task.GatewayCountTimer;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"/request"})
public class RequestCountController {

    @GetMapping({"/count"})
    @ResponseBody
    public ResultVO count() throws Exception {
        ResultVO vo = new ResultVO();
        vo.setData(GatewayCountTimer.getCountInfo());
        return vo;
    }
}
